<f:view id="ajaxEcho" xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui">
    <h:head />
	<h:body>
		<ui:composition template="/template/templateLogin.xhtml">

			<ui:define name="corpo">
				<h:form id="form1">
					<div style="margin-top: 8%">
						<p:growl />
						<p:fieldset legend="Login" styleClass="centered" style="width: 287px;">
							<div>
								<table>
									<tr>
										<td><h:outputText value="Usuário: " /></td>
										<td><p:inputText label="usuario" value="#{loginController.usuario.login}" required="true" requiredMessage="O campo usuario é Obrigatório." /></td>
									</tr>
									<tr>
										<td><h:outputText value="Senha: " /></td>
										<td><p:password id="senha" value="#{loginController.usuario.senha}" required="true" requiredMessage="O campo senha é Obrigatório." /></td>
									</tr>
								</table>
							</div>
								<br/>
						<p:commandButton value="Entrar" action="#{loginController.login()}" ajax="false" icon="ui-icon-key" style="margin-left:75%"/>
					
						</p:fieldset>
					</div>
				</h:form>
			</ui:define>
		</ui:composition>
	</h:body>
</f:view>